#!/bin/bash
dt=`date -d '-1 days' +"%Y-%m-%d"`
nohup hive -hivevar dt=$dt -f /root/dwd_inc_dim_aml_customer.sql & >> /aml/dwd/dim_aml_customer_yyyymmdd.log
nohup hive -hivevar dt=$dt -f /root/dwd_inc_dim_aml_account.sql & >> /aml/dwd/dim_aml_account_yyyymmdd.log
nohup hive -hivevar dt=$dt -f /root/dwd_inc_dim_aml_watchlist.sql & >> /aml/dwd/dim_aml_watchlist_yyyymmdd.log
nohup hive -hivevar dt=$dt -f /root/dwd_inc_dim_aml_rule.sql & >> /aml/dwd/dim_aml_rule_yyyymmdd.log
nohup hive -hivevar dt=$dt -f /root/dwd_inc_fact_aml_transaction.sql & >> /aml/dwd/fact_aml_transaction_yyyymmdd.log
nohup hive -hivevar dt=$dt -f /root/dwd_inc_fact_aml_screening.sql & >> /aml/dwd/fact_aml_screening_yyyymmdd.log
nohup hive -hivevar dt=$dt -f /root/dwd_inc_fact_aml_alert.sql & >> /aml/dwd/fact_aml_alert_yyyymmdd.log
nohup hive -hivevar dt=$dt -f /root/dwd_inc_fact_aml_str_report.sql & >> /aml/dwd/fact_aml_str_report_yyyymmdd.log

问题：文件名称传为变量
